namespace java.swift myorg.myrpc.decorator
namespace cpp gdface
namespace java myorg.myrpc.client.thrift
namespace py gdface.thrift



exception ServiceRuntimeException {
  1: optional string message;
  2: optional string causeClass;
  3: optional string serviceStackTraceMessage;
  4: optional string causeFields;
  5: required i32 type;
}

struct PersonBean {
  1: required bool _new;
  2: required i32 modified;
  3: required i32 initialized;
  4: optional i32 id;
  5: optional string name;
  6: optional i32 sex;
  7: optional string password;
  8: optional string birthdate;
  9: optional string mobilePhone;
  10: optional i32 papersType;
  11: optional string papersNum;
  12: optional string remark;
  13: optional string createTime;
  14: optional string updateTime;
}

service IMyrpc {
  i32 countPersonByWhere(1: optional string where) throws (1: ServiceRuntimeException ex1);
  i32 deletePerson(1: required i32 personId) throws (1: ServiceRuntimeException ex1);
  bool existsPerson(1: required i32 persionId) throws (1: ServiceRuntimeException ex1);
  PersonBean getPerson(1: required i32 personId) throws (1: ServiceRuntimeException ex1);
  PersonBean getPersonByMobilePhone(1: optional string mobilePhone) throws (1: ServiceRuntimeException ex1);
  PersonBean getPersonByPapersNum(1: optional string papersNum) throws (1: ServiceRuntimeException ex1);
  list<PersonBean> getPersons(1: optional list<i32> idList) throws (1: ServiceRuntimeException ex1);
  bool isLocal() throws (1: ServiceRuntimeException ex1);
  list<i32> loadAllPerson() throws (1: ServiceRuntimeException ex1);
  list<PersonBean> loadPersonByWhere(1: optional string where, 2: required i32 startRow, 3: required i32 numRows) throws (1: ServiceRuntimeException ex1);
  list<i32> loadPersonIdByWhere(1: optional string where) throws (1: ServiceRuntimeException ex1);
  PersonBean savePerson(1: optional PersonBean personBean) throws (1: ServiceRuntimeException ex1);
  string version() throws (1: ServiceRuntimeException ex1);
  map<string, string> versionInfo() throws (1: ServiceRuntimeException ex1);
}
